package com.ruoyi.order.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.MesStationOperateFlowMapper;
import com.ruoyi.order.domain.MesStationOperateFlow;
import com.ruoyi.order.service.IMesStationOperateFlowService;

/**
 * 操作流程Service业务层处理
 * 
 * @author guoxl
 * @date 2025-07-06
 */
@Service
public class MesStationOperateFlowServiceImpl implements IMesStationOperateFlowService 
{
    @Autowired
    private MesStationOperateFlowMapper mesStationOperateFlowMapper;

    /**
     * 查询操作流程
     * 
     * @param id 操作流程主键
     * @return 操作流程
     */
    @Override
    public MesStationOperateFlow selectMesStationOperateFlowById(Long id)
    {
        return mesStationOperateFlowMapper.selectMesStationOperateFlowById(id);
    }

    /**
     * 查询操作流程列表
     * 
     * @param mesStationOperateFlow 操作流程
     * @return 操作流程
     */
    @Override
    public List<MesStationOperateFlow> selectMesStationOperateFlowList(MesStationOperateFlow mesStationOperateFlow)
    {
        return mesStationOperateFlowMapper.selectMesStationOperateFlowList(mesStationOperateFlow);
    }

    /**
     * 新增操作流程
     * 
     * @param mesStationOperateFlow 操作流程
     * @return 结果
     */
    @Override
    public int insertMesStationOperateFlow(MesStationOperateFlow mesStationOperateFlow)
    {
        mesStationOperateFlow.setCreateTime(DateUtils.getNowDate());
        return mesStationOperateFlowMapper.insertMesStationOperateFlow(mesStationOperateFlow);
    }

    /**
     * 修改操作流程
     * 
     * @param mesStationOperateFlow 操作流程
     * @return 结果
     */
    @Override
    public int updateMesStationOperateFlow(MesStationOperateFlow mesStationOperateFlow)
    {
        mesStationOperateFlow.setUpdateTime(DateUtils.getNowDate());
        return mesStationOperateFlowMapper.updateMesStationOperateFlow(mesStationOperateFlow);
    }

    /**
     * 批量删除操作流程
     * 
     * @param ids 需要删除的操作流程主键
     * @return 结果
     */
    @Override
    public int deleteMesStationOperateFlowByIds(Long[] ids)
    {
        return mesStationOperateFlowMapper.deleteMesStationOperateFlowByIds(ids);
    }

    /**
     * 删除操作流程信息
     * 
     * @param id 操作流程主键
     * @return 结果
     */
    @Override
    public int deleteMesStationOperateFlowById(Long id)
    {
        return mesStationOperateFlowMapper.deleteMesStationOperateFlowById(id);
    }
}
